// 活动查询数据接口
interface SelectDataInt {
    name: string;
    scope: string;
    type: string;
    page: number;
    pageSize: number;
}

// 单个活动记录的接口
export interface ActiveRecord {
    activeId: number;
    name: string;
    description: string;
    scope: string;
    type: string;
    beginTime: number[];  // 时间数组格式
    endTime: number[];    // 时间数组格式
}

export class InitData{
    activeData: ActiveRecord[] = [];
    total = 0;
    isShow = false;
    selectData: SelectDataInt = {
        name: '',
        scope: '',
        type: '',
        page: 1,
        pageSize: 10
    };
    active:ActiveRecord={
        activeId: 0,
        name: '',
        description: '',
        scope: '',
        type: '',
        beginTime: [0, 0, 0, 0, 0], // 初始值为一个有效的 number[] 类型
        endTime: [0, 0, 0, 0, 0],
    }
}